<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>写文章</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div class="article">
    	<form action="article/publish" method="post">
    		<table>
    			<tr><th>写文章</th></tr>
    			<tr><td>标题：</td><td><input type="text" name="articleTitle"></td></tr>
    			<tr><td>类别：</td>
    			<td><select name="categoryId">
    			<c:forEach items="${categoryList }" var="category" begin="0">
    				<option value="${category.categoryId }">${category.categoryName }</option>
    			</c:forEach></select></td></tr>
    			
    			<tr><td>正文：</td><td><textarea name="articleContent" rows="10"></textarea></td></tr>
    			<tr><td><input type="submit" value="发表"></td><td><input type="reset" value="重置"></td></tr>
    		</table>
    	</form>
    </div>
  </body>
</html>
